package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.domain.UserCollectionEntity;
import com.domain.Video;
import com.dto.PageResult;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 视频收藏记录表 服务类
 * </p>
 *
 * @author sly
 * @since 2024-01-13
 */
public interface UserCollectionService extends IService<UserCollectionEntity> {

    @Transactional(rollbackFor = Exception.class)
    PageResult<Video> pageListUserCollection(UserCollectionEntity userCollectionEntity);

    void addUserCollection(UserCollectionEntity userCollectionEntity);

    void deleteUserCollection(UserCollectionEntity userCollectionEntity);
}
